//左下
    var orderItems=document.getElementById("orderItems");
		
    orderItems.onload = $(function(){
                $.ajax({
                    type:'GET',
                    url:'http://localhost:9527/wz/serviceorder/orderList',
                    data() {},
                success:function({data}){

                	var arr=data;

                	var workid='';
                	for (var i = 0; i < arr.length; i++) {
                		const work = arr[i];
                		workid += '<li>'+ arr[i].time+'</li>'+'<li>'+ arr[i].name+'</li>'+'<li>'+ arr[i].task+'</li>'+'<li>'+ arr[i].tissue+'</li>'+'<li>'+ arr[i].state+'</li>';
                	}
                	orderItems.innerHTML=workid;
                },
				})
        })
		//中部sos

		   //右上
	
		   var right_1 = document.getElementById("right_1");
		   right_1.onload = $(function(){
		               $.ajax({
		                   type:'GET',
						   //
		                   url:'http://localhost:9527/wz/serviceorder/orderCount',
		                   data() {},
		               success:function({data}){
		   
		               	//


		               	var workid_2='';
		             
		               	workid_2 = '<div><span class="serNum">'+data+'</span>单</div><p>惠民服务订单数</p>';
		               	right_1.innerHTML=workid_2;
		               },
		   			})
		       })
			   
			   var right_2 = document.getElementById("right_2");
			   right_2.onload = $(function(){
			               $.ajax({
			                   type:'GET',
			   						   //
			                   url:'http://localhost:9527/wz/servicecall/getCallCountInWeek',
			                   data() {},
			               success:function({data}){
			   
			               	//
			   						var arr2=data;
									//console.log(arr2);
			   
	
			               	var	workid_3 =  '<div><span class="serNum">'+arr2+'</span>单</div><p>当前呼吸量</p>';

			               	right_2.innerHTML=workid_3;
			               },
			   			})
			       })
				   
				   var weather = document.getElementById("weather");
				   weather.onload = $(function(){
				               $.ajax({
				                   type:'GET',
				   						   //
				                   //url:'http://47.108.119.245:9527/wz/servicecall/getWeather',
								   url:'http://wthrcdn.etouch.cn/weather_mini?city=驻马店',
				                   data() {},
				               success:function({data}){
				   
				               	//
				   				
				   				console.log(data.forecast[3]);
				   
				   	
				   
				               	weather.innerHTML=data;
				               },
				   			})
				       })
			   
		   
